package org.darkforest.common.services;

import org.darkforest.vo.SmsResult;

/**
 * Created by valentina on 15/3/30.
 * 短信接口
 */
public interface SmsService {

    public SmsResult sendCaptcha(String phoneNum, Integer validMinutes);

    public boolean verfiyCaptcha(String channel, String captcha);

    public boolean sendGiftCode(String phoneNum,String senderName,String giftCode);

    /**
     * 发送邮件验证码,有效时间内可用
     */
    public void sendMailCode(String email,Integer seconds) throws Exception;

}
